/**文章接口 */
import request from "@/utils/request";
// 获取文章列表接口
export function getArticleList(limit, page) {
    return request({
        url: `/api/v1/article/getArticleList/${limit}/${page}`,
        method: "get",
    });
}
// 发布文章
export function publishArticle(data) {
    return request({
        url: `/api/v1/article/publishArticle`,
        method: "post",
        data,
    });
}
// 删除文章
export function deleteArticle(data) {
    return request({
        url: `/api/v1/article/deleteArticle`,
        method: "delete",
        data,
    });
}

// 编辑文章
export function EditArticle(data) {
    return request({
        url: `/api/v1/root/article/alter`,
        method: "put",
        data,
    });
}
// 模糊查询文章x
export function SearchArticles(fuzzyTitle, limit, page) {
    return request({
        url: `/api/v1/article/query/fuzzy/${fuzzyTitle}/${limit}/${page}`,
        method: "get",
    });
}
// 刷新文章不改变浏览量

export function RefreshArticle(id) {
    return request({
        url: `/api/v1/article/refreshArticle/${id}`,
        method: "get",
    });
}
// 批量删除文章
export function BatchDeleteArticle(data) {
    return request({
        url: `/api/v1/root/article/batch/deleteArticle`,
        method: "delete",
        data
    });
}
// 获取已删除列表
export function getArticleDeleteList(limit, page) {
    return request({
        url: `/api/v1/root/article/deleteList/${limit}/${page}`,
        method: "get",
    });
}